Skip to content

fix: Position mobile menu above footer using CSS #1363

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 5, 2024
Merged

fix: Position mobile menu above footer using CSS #1363

merged 1 commit into from
Sep 5, 2024

Conversation

w3bdesign
Copy link
Owner

This commit addresses the issue with the mobile menu in LayoutMobileMenu.vue by implementing a CSS-based solution to position the menu above the footer. The changes include:

Remove JavaScript-based height calculations
Add CSS positioning for the mobile menu to prevent footer overlap Simplify component logic for toggling menu visibility Ensure menu is scrollable when content exceeds available height Maintain proper opening and closing functionality
The mobile menu now extends from the top of the screen to just above the footer, allowing users to close it by clicking the hamburger icon or selecting a menu item. The footer remains visible and accessible at all times.

Note: The CSS values for bottom spacing and max-height may need adjustment based on the actual footer height in the application.

This fix improves the user experience by ensuring the mobile menu is always accessible and doesn't interfere with the footer content.

This commit addresses the issue with the mobile menu in LayoutMobileMenu.vue by implementing a CSS-based solution to position the menu above the footer. The changes include:

Remove JavaScript-based height calculations
Add CSS positioning for the mobile menu to prevent footer overlap
Simplify component logic for toggling menu visibility
Ensure menu is scrollable when content exceeds available height
Maintain proper opening and closing functionality
The mobile menu now extends from the top of the screen to just above the footer, allowing users to close it by clicking the hamburger icon or selecting a menu item. The footer remains visible and accessible at all times.

Note: The CSS values for bottom spacing and max-height may need adjustment based on the actual footer height in the application.

This fix improves the user experience by ensuring the mobile menu is always accessible and doesn't interfere with the footer content.
@w3bdesign w3bdesign self-assigned this Sep 5, 2024
Copy link

vercel bot commented Sep 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nuxtjs-woocommerce 🔄 Building (Inspect) Visit Preview 💬 Add feedback Sep 5, 2024 3:23am

@w3bdesign w3bdesign merged commit c3566d2 into master Sep 5, 2024
5 of 7 checks passed
Copy link

sonarqubecloud bot commented Sep 5, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant